﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SaleOnlineSystem.Controls
{
    public partial class BoxNewsDetail : System.Web.UI.UserControl
    {
        public string News_Image;
        public string News_Summary;
        public string News_Description;
        public string decodeddescription;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataTable dt = NewsDetail.dt;

                News_Image = dt.Rows[0]["News_Image"].ToString();
                News_Summary = dt.Rows[0]["News_Summary"].ToString();              
                News_Description = dt.Rows[0]["News_Description"].ToString();
                decodeddescription = Server.HtmlDecode(News_Description);
            }
        }
    }
}